package motor;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.util.List;

public class Disparo {
	BufferedImage bala;
	ImageCache img = ImageCache.getInstance();
	
	public Disparo() {

		bala = img.getImage(CargarJuego.escenario.getPanel().getPersonaje().getHeroe().getBala());
		
	}
	
	
	public void Dispara(Graphics2D g2d,int xHeroe,int dx,boolean direccion){
		System.out.println(xHeroe+dx+60);
		g2d.drawImage(bala, xHeroe+dx+60, 410, null);
		
		
	}

}
